package structuralModel.agentModel.cglibProxy;

/**
 * 功能描述: cglib 代理测试
 * 2024/03/03
 * <p>
 * ZhangYi
 */
public class CglibClientTest {
    public static void main(String[] args) {
        CglibProxyFactory cglibProxyFactory = new CglibProxyFactory(new TeacherDao());
        TeacherDao proxyInstance =(TeacherDao)cglibProxyFactory.getProxyInstance();
        proxyInstance.saveTeacher();
    }
}
